Skip to content

Fix truncated battles on attempted thread stop#85

Merged
flemming-n-larsen merged 1 commit into
robo-code:mainfrom
jkflying:patch-1
May 18, 2026
Merged

Fix truncated battles on attempted thread stop#85
flemming-n-larsen merged 1 commit into
robo-code:mainfrom
jkflying:patch-1

Conversation

@jkflying
Copy link
Copy Markdown
Contributor

I found an issue with the new security manager. If the thread stop fails there is a NPE which ends up aborting the battle early. This causes battles to be reported with their results, but the wrong number of rounds.

The fix is to take a reference to the thread beforehand so that we don't throw the NPE when the forceStop() sets it to null.

@jkflying jkflying marked this pull request as draft May 16, 2026 21:21
@jkflying jkflying marked this pull request as ready for review May 16, 2026 22:26
@flemming-n-larsen
Copy link
Copy Markdown
Member

@jkflying Thank you for the fix. ❤️

@flemming-n-larsen flemming-n-larsen merged commit 4d8f53a into robo-code:main May 18, 2026
flemming-n-larsen added a commit that referenced this pull request May 18, 2026
Documents the NPE fix that caused battles to be truncated when a robot
thread stop was attempted, with credits to Julian Kent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
flemming-n-larsen added a commit that referenced this pull request May 18, 2026
flemming-n-larsen added a commit that referenced this pull request May 18, 2026
Documents the NPE fix that caused battles to be truncated when a robot
thread stop was attempted, with credits to Julian Kent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
flemming-n-larsen added a commit that referenced this pull request May 18, 2026
Documents the NPE fix that caused battles to be truncated when a robot
thread stop was attempted, with credits to Julian Kent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@flemming-n-larsen
Copy link
Copy Markdown
Member

@jkflying I released 1.10.3. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants